\hypertarget{uart_8h}{
\section{uart.h File Reference}
\label{uart_8h}\index{uart.h@{uart.h}}
}
{\ttfamily \#include $<$avr/interrupt.h$>$}\par
{\ttfamily \#include $<$avr/pgmspace.h$>$}\par
{\ttfamily \#include $<$avr/io.h$>$}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{uart_8h_a707aaabe71aaf73fb1d35af7a5a66acf}{fosc}~16000000
\item 
\#define \hyperlink{uart_8h_a5fe3bdd64d8525af2f206a795bb1fe8e}{baudrate}~57600
\item 
\#define \hyperlink{uart_8h_a3760abcfde1fa85ac9007f7412233cd0}{print}(\hyperlink{main_8c_a11f855a8586e09eb1b5ecff37d808062}{s})~printPRGstr1(PSTR(\hyperlink{main_8c_a11f855a8586e09eb1b5ecff37d808062}{s}));
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{uart_8h_a8e9bc860cb9735abff9d1362e2e8a502}{printPRGstr1} (const char $\ast$str)
\item 
void \hyperlink{uart_8h_a0baed3730d33a1ab38f7dd93535bd399}{uart\_\-initial} (void)
\begin{DoxyCompactList}\small\item\em Initialisiert die UART-\/Kommunikation. \item\end{DoxyCompactList}\item 
void \hyperlink{uart_8h_a2e065279ae8db44201c28eaaf6f430b5}{uart\_\-puts} (char $\ast$\hyperlink{main_8c_a11f855a8586e09eb1b5ecff37d808062}{s})
\begin{DoxyCompactList}\small\item\em Ausgeben von Strings. puts ist unabhaengig vom Controllertyp. \item\end{DoxyCompactList}\item 
int \hyperlink{uart_8h_a906dfae1e2e498d5eb1856726e195268}{uart\_\-putc} (unsigned char c)
\begin{DoxyCompactList}\small\item\em Ausgeben einzelenr Buchstaben. \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Define Documentation}
\hypertarget{uart_8h_a5fe3bdd64d8525af2f206a795bb1fe8e}{
\index{uart.h@{uart.h}!baudrate@{baudrate}}
\index{baudrate@{baudrate}!uart.h@{uart.h}}
\subsubsection[{baudrate}]{\setlength{\rightskip}{0pt plus 5cm}\#define baudrate~57600}}
\label{uart_8h_a5fe3bdd64d8525af2f206a795bb1fe8e}
\hypertarget{uart_8h_a707aaabe71aaf73fb1d35af7a5a66acf}{
\index{uart.h@{uart.h}!fosc@{fosc}}
\index{fosc@{fosc}!uart.h@{uart.h}}
\subsubsection[{fosc}]{\setlength{\rightskip}{0pt plus 5cm}\#define fosc~16000000}}
\label{uart_8h_a707aaabe71aaf73fb1d35af7a5a66acf}
\hypertarget{uart_8h_a3760abcfde1fa85ac9007f7412233cd0}{
\index{uart.h@{uart.h}!print@{print}}
\index{print@{print}!uart.h@{uart.h}}
\subsubsection[{print}]{\setlength{\rightskip}{0pt plus 5cm}\#define print(
\begin{DoxyParamCaption}
\item[{}]{{\bf s}}
\end{DoxyParamCaption}
)~printPRGstr1(PSTR({\bf s}));}}
\label{uart_8h_a3760abcfde1fa85ac9007f7412233cd0}


\subsection{Function Documentation}
\hypertarget{uart_8h_a8e9bc860cb9735abff9d1362e2e8a502}{
\index{uart.h@{uart.h}!printPRGstr1@{printPRGstr1}}
\index{printPRGstr1@{printPRGstr1}!uart.h@{uart.h}}
\subsubsection[{printPRGstr1}]{\setlength{\rightskip}{0pt plus 5cm}void printPRGstr1 (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{str}
\end{DoxyParamCaption}
)}}
\label{uart_8h_a8e9bc860cb9735abff9d1362e2e8a502}
\hypertarget{uart_8h_a0baed3730d33a1ab38f7dd93535bd399}{
\index{uart.h@{uart.h}!uart\_\-initial@{uart\_\-initial}}
\index{uart\_\-initial@{uart\_\-initial}!uart.h@{uart.h}}
\subsubsection[{uart\_\-initial}]{\setlength{\rightskip}{0pt plus 5cm}void uart\_\-initial (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{uart_8h_a0baed3730d33a1ab38f7dd93535bd399}


Initialisiert die UART-\/Kommunikation. 

\begin{DoxyReturn}{Returns}
nothing 
\end{DoxyReturn}
\hypertarget{uart_8h_a906dfae1e2e498d5eb1856726e195268}{
\index{uart.h@{uart.h}!uart\_\-putc@{uart\_\-putc}}
\index{uart\_\-putc@{uart\_\-putc}!uart.h@{uart.h}}
\subsubsection[{uart\_\-putc}]{\setlength{\rightskip}{0pt plus 5cm}int uart\_\-putc (
\begin{DoxyParamCaption}
\item[{unsigned char}]{c}
\end{DoxyParamCaption}
)}}
\label{uart_8h_a906dfae1e2e498d5eb1856726e195268}


Ausgeben einzelenr Buchstaben. 

\begin{DoxyReturn}{Returns}
0 
\end{DoxyReturn}
\hypertarget{uart_8h_a2e065279ae8db44201c28eaaf6f430b5}{
\index{uart.h@{uart.h}!uart\_\-puts@{uart\_\-puts}}
\index{uart\_\-puts@{uart\_\-puts}!uart.h@{uart.h}}
\subsubsection[{uart\_\-puts}]{\setlength{\rightskip}{0pt plus 5cm}void uart\_\-puts (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{s}
\end{DoxyParamCaption}
)}}
\label{uart_8h_a2e065279ae8db44201c28eaaf6f430b5}


Ausgeben von Strings. puts ist unabhaengig vom Controllertyp. 

\begin{DoxyReturn}{Returns}
nothing 
\end{DoxyReturn}
